package org.dromara.tearoom.domain;

import org.dromara.common.tenant.core.TenantEntity;
import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serial;
import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 钱包充值交易流水对象 ter_transactions
 *
 * @author xch
 * @date 2025-05-08
 */
@Data
@TableName("ter_transactions")
public class TerTransactions  implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 
     */
    @TableId(value = "id")
    private Long id;

    /**
     * 会员id
     */
    private Long memberId;

    /**
     * 充值金额
     */
    private Integer amount;

    /**
     * 原余额
     */
    private Integer balanceBefore;

    /**
     * 充值后余额
     */
    private Integer balanceAfter;
    private LocalDateTime createTime;

    /**
     * 账户id
     */
    private Long accountId;

    private String remark;
    /**
     * 租户编号
     */
    private String tenantId;
    private Integer giftBefore;
    private Integer giftAfter;
    private String orderId;
}
